<template>
  <div id="detailed">
    <c-title :hide="false" :text="integral ? integral + '明细' :'积分明细'"></c-title>
    <!-- <diyBackGround></diyBackGround> -->
    <!-- <div class="statusBox">
      <div class="statusBox_left">
        <div class="txt" :class="statusValue == 0 ? 'showtxt' : ''" @click="selectStatus(0)">全部</div>
        <div class="txt" :class="statusValue == 1 ? 'showtxt' : ''" @click="selectStatus(1)">收入</div>
        <div class="txt" :class="statusValue == 2 ? 'showtxt' : ''" @click="selectStatus(2)">支出</div>
      </div>
      <div class="statusBox_right" @click.stop="selectShow = !selectShow" >
        <div class="txt">{{ source_comment[selectTapInd] }}</div>
      </div>
    </div> -->
    <template>
      <template>
        <div class="timeSelect" v-if="noneShow">
          <div class="balance">月月赚*</div>
          <div class="balance">
商城会员购买套餐后，全国会员按时间先后排序，当旅居会员购买入住旅居驿站后，按时间先后排序对应商城会员序号，及产生月月赚积分。本月产生，次月月底发放。
          </div>
          <div v-if="endTime != ''" style="width: 100%;display: flex;justify-content: flex-end;color: red;">到期时间：{{ endTime }}</div>
        </div>
        <div class="list" v-if="list.length > 0">
          <div class="lis" v-for="(info, index) in list" :key="index">
            <div class="lisTop">
              <div class="txtName">{{ info.remark }}</div>
              <div class="price">{{ info.source_type == 1 ? "+" : "" }}{{ info.change }}</div>
            </div>
            <div class="lisTop dob">
              <div class="time">{{ info.created_at | timestampToDateTime }}</div>
              <!-- <div class="balance">{{integral?integral:'积分'}}：{{ info.present }}</div> -->
            </div>
          </div>
        </div>
        <!-- <van-empty description="什么也没有"></van-empty> -->
        <div v-else class="list" style="min-height: 18.875rem;">
            <van-empty description="暂无记录"></van-empty>
            <!-- <div class="listTxt">暂无记录</div> -->
        </div>
      </template>
    </template>
    <!-- <template v-else>
      <div class="timeSelect" :key="index">
        <div class="timeBox" @click="show = true">
          <div class="time">{{ postDate }}</div>
          <van-icon name="arrow-down" size="12px" />
        </div>
        <div class="totalNum">支出：￥0.00 收入：￥0.00</div>
      </div>
      <div class="list">
        <div class="listTxt">暂无记录</div>
      </div>
    </template> -->
  </div>
</template>
<script>
import assetsDetailOtherController from "./assetsDetailOtherController";
export default assetsDetailOtherController;
</script>
<!-- <style scoped>
    body {
        width: 100%;
        background-image: linear-gradient(#fe9a51,#f5f5f5);
        background-repeat: no-repeat;
        background-size: 100% 18.875rem;
        }
</style> -->
<style lang="scss" rel="stylesheet/scss" scoped>
#detailed {
    width: 100%;
    background-image: linear-gradient(#fe9a51,#f5f5f5);
    background-repeat: no-repeat;
    background-size: 100% 18.875rem;
    min-height: 18.875rem;
}
.typeBox {
  overflow-y: scroll;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 0.625rem;
  padding-top: 1rem;
  .lis {
    width: 30%;
    padding: 0.6rem 0.625rem;
    border-radius: 0.1563rem;
    background: #9999;
    margin-right: 1rem;
    margin-bottom: 0.625rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    .txt{
      font-size: 12px;
    }
  }
  .lis:nth-child(3n){
    margin-right: 0;
  }
  .lisBg {
    background: var(--themeBaseColor) !important;
  }
}
#detailed {
  .listTxt {
    padding: 2rem 0;
  }
  @keyframes ident {
    0% {
      opacity: 0;
    }

    50% {
      opacity: 0.75;
    }

    100% {
      opacity: 1;
    }
  }
  .showPosBox {
    animation: ident 0.5s;
  }
  .background_box {
    color: #382c0a;
    background-color: #fff;
    background-image: -webkit-gradient(linear, left top, left bottom, from(var(--themeBaseColor)), to(#f5f5f5));
    background-image: -webkit-linear-gradient(var(--themeBaseColor), #f5f5f5);
    background-image: linear-gradient(var(--themeBaseColor), #f5f5f5);
    min-height: 9.25rem;
    padding: 1.5938rem 1.0938rem 0 1.0938rem;
  }

  .statusBox {
    margin: 0 0.625rem;
    margin-top: -7rem;
    margin-bottom: 0.625rem;
    display: flex;
    justify-content: space-between;
    z-index: 1;
    position: relative;
    .statusBox_left {
      display: flex;
      font-size: 0.75rem;
      color: #262626;
      .txt {
        line-height: 1.875rem;
        width: 3.75rem;
      }
      .showtxt {
        width: 3.75rem;
        height: 1.875rem;
        background: #ffffff;
        border-radius: 0.9375rem;
      }
    }
    .statusBox_right {
      min-width: 5.3125rem;
      height: 1.875rem;
      background: #fdefbd;
      border-radius: 0.3125rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 0.4688rem;
      position: relative;
      .txt {
        flex: 1;
        text-align: center;
      }
      .statusBox_right_pos {
        background: #fdefbd;
        position: absolute;
        bottom: -4.3rem;
        left: 0;
        width: 100%;
        z-index: 22222222;
        border-radius: 0 0 0.3125rem 0.3125rem;
        .postxt {
          height: 1.5rem;
          line-height: 1.5rem;
        }
      }
    }
  }
  .list {
    margin: 0 0.625rem;
    padding: 0 0.875rem;
    margin-top: 0.9375rem;
    background: #ffffff;
    border-radius: 0.625rem;
    margin-bottom: 0.625rem;
    .lis:first-child {
      border: none;
    }
    .lis {
      display: flex;
      flex-direction: column;
      padding: 0.9375rem 0;
      border-bottom: 1px solid #f6f6f6;
      .dob {
        margin-top: 0.4688rem;
      }
      .lisTop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        .txtName {
          font-size: 0.8125rem;
        }
        .price {
          font-size: 0.8125rem;
          font-weight: 500;
          color: #f20606;
        }
        .time {
          font-size: 0.6875rem;
          color: #999999;
        }
        .balance {
          font-size: 0.6875rem;
          font-weight: 400;
          color: #666666;
        }
      }
    }
  }
  .timeSelect {
    // height: 2.5rem;
    background: #ffffff;
    border-radius: 0.625rem;
    margin: 0 0.625rem;
    // display: flex;
    padding: 0.9063rem;
    align-items: center;
    position: sticky;
    top: 40px;
    margin-top: 2rem;
    .timeBox {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      .time {
        margin-right: 0.5rem;
        font-size: 0.8125rem;
        text-align: left;
      }
    }
    .balance {
        text-align: left;
    }
    
    .totalNum {
      flex: 1;
      text-align: right;
      font-size: 0.625rem;
      color: #333333;
    }
  }
}

</style>